package com.example.feild.encryption.domain.pojo.model;


import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * (DemoStaff)实体类
 * @author makejava
 * @since 2020-04-27 10:51:05
 */
@Table(name = "demo_staff")
public class DemoStaff implements Serializable {
    private static final long serialVersionUID = 852790939793119496L;
    // 如果在后续的开发中，返回的实体不属于数据库字段列时，需要使用注解@Transient

    //主键    
    @Id
    @Column(name = "staff_id")
    private Integer staff_id;

    //姓名
    @Column(name = "name")
    private String name;
    //年龄
    @Column(name = "age")
    private Integer age;
    //创建时间
    @Column(name = "create_time")
    private Date create_time;
    //修改时间
    @Column(name = "update_time")
    private Date update_time;


    public Integer getStaff_id() {
        return staff_id;
    }

    public void setStaff_id(Integer staff_id) {
        this.staff_id = staff_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

}